PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.fonts.type1 Package / PDFType1Font Class / createWithAfmMetrics Method / createWithAfmMetrics(String,String,double,boolean) Method
Path to .afm file.
Path to .pfb file.
Font size.
True if the font should be embedded in the PDF file.
In This Topic
    createWithAfmMetrics(String,String,double,boolean) Method
    In This Topic
    Creates a Type1 font from a combination of .afm and .pfb files.
    Syntax
    public static PDFType1Font createWithAfmMetrics( 
       java.lang.String metricsFile,
       java.lang.String fontFile,
       double size,
       boolean embed
    )

    Parameters

    metricsFile
    Path to .afm file.
    fontFile
    Path to .pfb file.
    size
    Font size.
    embed
    True if the font should be embedded in the PDF file.

    Return Value

    A Type1 font Object.
    See Also